import { ref } from 'vue';

export function useExport() {
    const exportDialogVisible = ref(false);
    const isExport = ref(false);
    const content = ref('');
    const showExport = () => {
        exportDialogVisible.value = true;
        isExport.value = true;
    };
    const showImport = () => {
        exportDialogVisible.value = true;
        isExport.value = false;
    };

    return {
        exportDialogVisible,
        isExport,
        content,
        showExport,
        showImport,
    };
}
